//
//  GXScanViewController.h
//  ScanQRCode
//
//  Created by Ssky on 2016/11/21.
//  Copyright © 2016年 Sky SS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "GXQRCodeManager.h"


@class GXScanViewController;

@protocol GXScanViewControllerDelegate <NSObject>

@required

/**
 扫描到数据之后返回数据并数据的类型

 @param scanVc 扫描控制器
 @param backObject 扫描到的数据
 @param backObjectType 扫描到的数据类型-字符串/网址
 */
- (void)gxScanVc:(GXScanViewController *)scanVc  backObject:(NSString *)backObject backObjectType:(BackObjectType)backObjectType;

@end


@interface GXScanViewController : UIViewController

@property (nonatomic,weak) id<GXScanViewControllerDelegate> scanDelegate;

//@property (nonatomic, strong) AVCaptureSession * session;

@property (nonatomic, readonly) GXQRCodeManager * manager;


@end
